.help {
    width: auto;
    background: url(../images/help.png) no-repeat;
    background-position: 5px center;
    border: 1px solid #DDDDDD;
    padding: 0.5em;
    padding-left: 40px;
    margin: 0.5em;
}

.repository {
    width: auto;
}

textarea.text {
    height: 50px;
    width: 400px;
}

#plugin_git_clone_url {
    margin: 20px 0 0;
}

#plugin_git_clone_url_group {
    display: inline;
}

#plugin_git_reference {
    margin: 0 0 20px;

    h1 {
        > a.git-repo-name {
            color: inherit;

            &:hover, &:focus {
                color: inherit;
                text-decoration: none;
                opacity: 0.8;
            }
        }

        .badge {
            position: relative;
            top: -5px;
            left: 5px;
            padding: 4px 10px 5px;
            border-radius: 50px;
            font-size: 13px;
        }

        a.badge:hover {
            opacity: 0.8;
        }
    }
}

#plugin_git_repository_actions {
    float: right;
    list-style: none;
    align: left;
    margin: 0 0 0 10em;
}

#plugin_git_repository_actions li {
    display: inline;
}

#plugin_git_repository_actions a {
    background: no-repeat;
    background-position: 5px center;
    padding-left: 24px;
}

#plugin_git_repository_actions a.repo_fork {
    background-image: url('../images/fork.png');
}

#plugin_git_repository_actions a.repo_admin {
    background-image: url('../images/edit.png');
}

#plugin_git_reference_author {
    clear: both;
    margin: 0;
    font-size: 0.9em;
    color: gray;
}

#plugin_git_description {
    margin: 0.5em 0 0.5em 0;
}

#plugin_git_fork_form {
    white-space: no-wrap;
    margin-top: 0em;
}

#plugin_git_clone_field {
    border: 1px solid rgb(196, 196, 196);
    padding-left: 5px;
}

#plugin_git_description textarea {
    vertical-align: top;
}

#plugin_git_repo_parent {
    color: #666;
    font-size: 12px;
    margin: -5px 0 0;
}

.plugin_git_repo_privacy {
    margin-right: 8px;
}

.plugin_git_repo_type_gitshell > #plugin_git_repo_parent {
    margin-left: 25px;
}

td.plugin_git_first_col {
    width: 11em;
}

.plugin_git_mail_prefix {
    width: 15em;
}

.plugin_git_permissions_select {
    width: 256px;
    margin-right: 20px;
}

#gitphp.plugin_git_gitphp {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    border: 1px solid #e3e3e3;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

#gitphp.plugin_git_gitphp .page_header {
    background: whiteSmoke;
}

#gitphp.plugin_git_gitphp div.search {
    margin-top: 18px;
}

#gitphp.plugin_git_gitphp .page_header .logo {
    display: none;
}

#gitphp.plugin_git_gitphp td,
#gitphp.plugin_git_gitphp td.link,
#gitphp.plugin_git_gitphp div.search {
    /* bootstrap default size */
    font-size: 14px;
}

#gitphp.plugin_git_gitphp a.title,
#gitphp.plugin_git_gitphp > table {
    margin-left: 0.5em;
}

#gitphp.plugin_git_gitphp div.page_footer {
    margin-top: 1em;
    background: whiteSmoke;
}

#gitphp.plugin_git_gitphp div.diff_info,
#gitphp.plugin_git_gitphp tr.dark,
#gitphp.plugin_git_gitphp div.title {
    background: #FCFCFC;
}

#git_repositories_list {
    min-width: 960px;
    width: auto;
}

tr.boxitemalt > td {
    font-weight: bold;
}

#fork_repositories {
    border-collapse: collapse;
}

#fork_repositories td {
    padding-left: 1em;
    border-left: 1px solid #ccc;
    padding-right: 1em;
    border-right: 1px solid #ccc;
}

#fork_repositories td.first {
    padding-left: 0em;
    border-left: none;
}

#fork_repositories td.last {
    padding-right: 0em;
    border-right: none;
}

.git_repomanagement label {
    display: block;
    margin-bottom: 5px;
}

.git_repomanagement_gerrit_more_description {
    display: inline-block;
    min-height: 20px;
    padding: 15px;
    margin-bottom: 1em;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

#plugin_git_example {
    > h3 {
        margin: 0 0 15px;
    }

    > dl {
        margin: 0;

        > dd {
            margin: 5px 0 15px;

            > pre {
                display: inline-block;
            }

            > ul {
                margin-bottom: 0;
            }
        }
    }
}

/* {{{ The styling of the #plugin_git_clone_field is based on bootstrap with
       customizations. Waiting for LESS support */
#plugin_git_clone_field {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
}

#plugin_git_clone_field {
    display: inline-block;
    height: 20px;
    padding: 4px 6px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 20px;
    color: #555555;
    vertical-align: top;
    background-color: #FCFCFC;
    border: 1px solid #cccccc;
    border-left: none;
    border-right: none;
    -webkit-box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.075);

}

#plugin_git_clone_field:focus {
    outline: 0;
    outline: thin dotted \9
;
    /* IE6-9 */

}

#plugin_git_clone_field:-moz-placeholder {
    color: #999999;
}

#plugin_git_clone_field:-ms-input-placeholder {
    color: #999999;
}

#plugin_git_clone_field::-webkit-input-placeholder {
    color: #999999;
}

#plugin_git_clone_field[class*="span"],
.row-fluid #plugin_git_clone_field[class*="span"] {
    float: none;
    margin-left: 0;
}

.input-append #plugin_git_clone_field[class*="span"],
.input-prepend #plugin_git_clone_field[class*="span"],
.row-fluid #plugin_git_clone_field[class*="span"] {
    display: inline-block;
}

#plugin_git_clone_field {
    margin-left: 0;
    border-left: 0;
}

/* }}} */

.input-prepend .gitclone_urls_protocols {
    border-right: 1px solid;

    > .btn:last-child {
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }

    .btn.git_first_protocol {
        -webkit-border-radius: 4px 0 0 4px;
        -moz-border-radius: 4px 0 0 4px;
        border-radius: 4px 0 0 4px;
    }
}

.gerrit_url.alert.alert-info {
    display: inline-block;
    margin-bottom: 1em;
}

.gerrit_url.alert.alert-info a {
    font-weight: bold;
    white-space: nowrap;
}

.wait_creation.alert.alert-info {
    display: inline-block;
    margin-bottom: 1em;
}

#plugin_git_clone_url_group > .add-on {
    display: inline-block;
    background-color: #fcfcfb;
}

#plugin_git_clone_url_group.plugin_git_clone_field-read-only > .add-on {
    display: inline-block;
    border-right: none;
    background: #fcfcfc;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.plugin_git_clone_field-read-only > .add-on > .label {
    line-height: inherit;
}

.plugin_git_clone_field-read-only > #plugin_git_clone_field {
    border-left: none;
}

a.btn.plugin_git_admin_button {
    color: #333;
    margin-left: 1em;
}

legend.gerrit_disconnect {
    font-weight: bold;
}

fieldset.gerrit_disconnect {
    width: 680px;
    border-color: lightgrey;
}

.git_admin_config_template_action {
    width: 80px;
}

#editor_textarea {
    width: 100%;
    height: 450px;
    padding-left: 0px;
    padding-right: 0px;
    border-left: 0px;
    border-right: 0px;
    resize: none;
}

#description_commit {
    resize: none;
}

#cancel {
    margin-right: 5px;
}

#commit_form {
    padding-left: 5px;
}

#mirrors-list {
    margin: 0 0 30px 25px;

    > li {
        > span {
            font-style: italic;
            color: #888;
            font-size: 0.9em;
        }
    }
}

.git_admin_mirror_owner_link {
    padding-top: 5px;
}

.reserved-hostname-help {
    font-size: 0.8em;
}

.git_admin_mirror_big_span {
    word-break: break-all;
}

.git_admin_mirror_table {
    max-width: 960px;

    > thead > tr > th {
        white-space: nowrap;
    }
}

.git_admin_mirror_url {
    white-space: nowrap
}

.git_admin_mirror_details {
    max-width: 800px;

    & > thead > tr > th:first-child, & > tbody > tr > td:first-child {
        width: 20px;
    }
}

.mirrors-list {
    max-width: 800px;

    & > thead > tr > th,
    & > tbody > tr > td {
        min-width: 100px;
        vertical-align: middle;
    }

    & > thead > tr > th:first-child,
    & > tbody > tr > td:first-child {
        min-width: 20px;
        max-width: 20px;
        text-align: center;
    }

    & > tbody > tr > td.name {
        width: 100%;
        white-space: nowrap;
    }

    & > thead > tr > th.used,
    & > tbody > tr > td.used {
        white-space: nowrap;
        text-align: center;
    }
}

.mass-mirrors-list {
    width: 600px;

    > thead > tr > th {
        padding: 0 40px;

        &:first-child {
            width: 100%;
        }
    }

    > thead > tr > th,
    > tbody > tr > td:first-child {
        white-space: nowrap;
        position: relative;
        height: 45px;
        min-width: 70px;
        padding-right: 30px;
    }

    > tbody > tr > td:first-child {
        box-sizing: border-box;
    }

    > thead > tr > th,
    > tbody > tr > td {
        vertical-align: middle;
        text-align: center;

        &:first-child {
            width: 100%;
            text-align: left;
        }
    }

    > tbody > tr {
        .check-all-panel {
            opacity: 0;
        }

        &:hover {
            .check-all-panel {
                opacity: 1;
            }
        }

        > td {
            transition: background linear 0.08s;

            > div {
                display: block;
                opacity: 0;
                margin: 5px 0 0 0;
                transition: opacity linear 0.08s;
            }

            &.has-changed {
                transition: background linear 0.08s;

                > div {
                    opacity: 1;
                    transition: opacity linear 0.08s;
                }

                &.was-used {
                    background: rgba(218, 83, 83, 0.2);

                    > div {
                        background: rgb(218, 83, 83);
                    }
                }

                &.was-unused {
                    background: rgba(88, 179, 89, 0.2);

                    > div {
                        background: rgb(88, 179, 89);
                    }
                }
            }
        }
    }

    .check-all-panel {
        display: inline-block;
        width: 20px;
        position: absolute;
        top: 3px;
        right: 3px;

        > .check-all,
        > .uncheck-all {
            white-space: nowrap;
            display: block;
            color: #777;

            &:hover, &:active {
                color: #222;
                text-decoration: none;
            }
        }

        > .uncheck-all {
            margin: 0 2px 0 0;
        }
    }
}

.mass-mirrors-list-update-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #E0E0E0;
    box-sizing: border-box;
}

body.sidebar-expanded .mass-mirrors-list-update-bar {
    padding-left: 200px;
}

.git-admin-tabs {
    margin: 10px 0;
}

.git-admin-tab-content {
    overflow: inherit;

    h3 {
        margin: 0 0 10px;
    }

    h4 {
        font-size: 1.1em;
        margin: 30px 0 10px
    }
}

.git-admin-mass-update-table {
    max-width: 800px;

    & > thead > tr > th:first-child, & > tbody > tr > td:first-child {
        width: 20px;
        text-align: center;
    }
}

.update-n-repositories > span {
    font-weight: bold;
}

.update-n-repositories-popup-content {
    display: none;
}

#gitclone_urls_readonly {
    box-shadow: inset 0px 1px 0px 0px rgba(0, 0, 0, 0.0470588);
}

#plugin_git_example-handle {
    border-left: 1px solid rgba(0, 0, 0, 0.0980392);
    margin-left: 0;
}

#gitclone_urls_protocol_ssh {
    + .dropdown-toggle + .dropdown-menu > li:not(.is_selected) > a > .icon-ok {
        visibility: hidden;
    }
}

.form-tree {
    margin: 30px 0 0;
}

h1, h2, h3 {
    .icon-question-sign {
        color: #AAA;
        font-size: 0.8em;

        &:hover {
            text-decoration: none;
            color: #888;
        }
    }
}

#gitphp.plugin_git_gitphp {
    table.diffTable {
        font-family: monospace;

        tr.diff-added {
            background-color: #C1FFC1;
        }

        tr.diff-modified {
            background-color: #DDEEFF;
        }

        tr.diff-deleted {
            background-color: #FFDDDD;
        }

        td {
            font-size: 0.85em;

            &.diff-left {
                border-right: 1px solid #d9d8d1;
            }
        }
    }
}

#readme {
    margin: 20px 0 0;
    border: 1px solid #E3E3E3;
    border-radius: 4px;

    > h2 {
        margin: 0;
        padding: 5px 10px;
        background: whitesmoke;
        font-size: 18px;
    }

    > #readme-content {
        padding: 10px;
    }
}

#admin-general-settings {
    ul > li > a.disabled-link {
        pointer-events: none;
        cursor: default;
        color: #AAA;
    }
}

#git-notification-mail-list {
    max-width: 960px;
    margin-bottom: 15px;
}

.git-notification-mail-list-people {
    width: 100%;
}

#admin-git-default-access-rights {
    > table {
        margin-bottom: 10px;
    }
}

.git_webhook {

    > .hooks-desc {
        margin: 10px 0 20px;
    }

    .create-webhook-btn {
        margin: 0 0 10px;
    }

    > .only-one-webhook {
        display: inline-block;
        cursor: not-allowed;
        margin-right: 4px;

        > .btn[disabled] {
            pointer-events: none;
        }
    }

    > .popover {
        h3 {
            border: 0;
            background: #da5353;
            color: #ffffff;
        }

        form {
            margin: 0;

            .remove-webhook-confirm-actions {
                text-align: right;
            }
        }

        p {
            font-size: 13px;
        }
    }
}

.hooks-list {
    max-width: 960px;

    > thead > tr > th,
    > tbody > tr > td {
        vertical-align: middle;
        white-space: nowrap;

        &:first-child {
            width: 100%;
            max-width: 430px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        &.last-push {
            max-width: 200px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        &.action-buttons {
            > a {
                margin: 0 5px;

                &:hover,
                &:focus {
                    text-decoration: none;
                    opacity: .8;
                }
            }
        }
    }
}

.hooks-jobs-list {
    > tbody {
        font-size: 12px;

        > tr:first-child > td {
            white-space: nowrap;
        }

        > tr > td:last-child {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            max-width: 383px;
            width: 100%;
        }
    }
}

.modal-webhook {
    > .modal-header {
        border-bottom: 2px solid #888888;

        > .close {
            margin-left: 10px;
        }

        > h3 {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    }

    .modal-body {

        > p:first-child {
            margin-bottom: 30px;
        }

        input[type=url] {
            width: 100%;
            height: 30px;
            box-sizing: border-box;
        }
    }
}

.remove-webhook-popover {
    display: none;
}

.git-per-tags-branches-permissions {
    .alert {
        display: inline-block;
        margin: 20px 0;
    }

    .regexp_incoherence_label {
        padding: 0 0 0 55px;
    }

    h4 {
        color: #888888;
        font-size: 14px;
        letter-spacing: .5px;
        text-transform: uppercase;
    }

    .permission-pattern {
        width: 50%;
    }

    .permission-delete {
        min-width: 80px;
    }

    > .popover {
        .popover-title {
            border: 0;
            background: #da5353;
            color: #ffffff;
        }

        form {
            margin: 0;

            .remove-fine-grained-permission-confirm-actions {
                text-align: right;
            }
        }

        p {
            font-size: 13px;
        }
    }
}

.git-permission-table {
    min-width: 800px;
    max-width: 1200px;

    .git-permission-table-selector {
        width: 250px;
    }

    select, input {
        width: 100%;
        margin: 0;
    }

    input {
        height: 30px;
        box-sizing: border-box;
    }
}

.git-default-permission-table {
    width: auto;
}

.add-fine-grained-permission {
    margin: 0 0 40px;
}

#add-fine-grained-permission-template {
    display: none;
}


.remove-fine-grained-permission-popover {
    display: none;
}

.regexp_permission_activated_hidden {
    display: none;
}

.use-regexp-label-arrow {
    margin: 0 0 0 20px;
}

.use-regexp-label {
    display: inline-block !important;
}

.regexp_permission_label {
    margin: 0;
}

.fine-grained-permissions {
    margin: 0 0 60px;
}

.modal-regexp-delete {
    display: none;
}

.modal {
    .remove-regexp-permission-popover {
        .popover-title {
            border: 0;
            background: #da5353;
            color: #ffffff;
        }
    }
}

.git-notification-mail-list-people {
    width: 100%;
}

.avatar.git-notification-mail-list-user-avatar {
    display: inline-block;
    position: relative;
    top: -2px;
    width: 22px;
    height: 22px; margin: 0 2px 0 0;
    vertical-align: middle;
}

.git-notification-mail-list-group-icon {
    color: #666;
    margin: 0 5px 0 4px;
}

.git-notification-mail-list-submit {
    margin: 15px 0 0;
}
